package com.zzjson.se;

import org.springframework.context.support.ResourceBundleMessageSource;

import java.text.MessageFormat;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2020 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.se</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2020年04月08日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class MessageFormatDemo {
	/**
	 * @param args
	 * @see ResourceBundleMessageSource#resolveCode(java.lang.String, java.util.Locale)
	 */
	public static void main(String[] args) {
		MessageFormat format = new MessageFormat("Hello,{0}!");
		System.out.println(format.format(new Object[]{"World"}));
	}

}
